@csrf
<div class="layui-form-item">
    <label for="name" class="layui-form-label">名称</label>
    <div class="layui-input-block">
        <input type="hidden" name="position" value="{{$carousel->position}}">
        <input type="text" name="name" class="layui-input" value="{{$carousel->name}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="target_url" class="layui-form-label">跳转地址</label>
    <div class="layui-input-block">
        <input type="text" name="target_url" class="layui-input" value="{{$carousel->target_url}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="order_id" class="layui-form-label">排序</label>
    <div class="layui-input-block">
        <input type="text" name="order_id" class="layui-input" value="{{$carousel->order_id}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">图片</label>
    <div class="layui-input-block">
        <button type="button" class="layui-btn" id="img_file">
            <i class="layui-icon">&#xe67c;</i>上传图片
        </button>
        <input type="hidden" class="req-data" name="img_url" id="img_url" value="{{$carousel->img_url}}">
        <p id="upload-tip" style="display:none">上传中</p>
        <img id="slide_img" width="300" src="{{$carousel->img_url}}" />
    </div>
</div>
